700
Is it possible to colour a particular column for specified values

public void init()
{
	COM com_Columns,com_ConditionalFormat,com_Items;
	anytype var_Columns,var_ConditionalFormat,var_Items;
	;

	super();

	exgantt1.BeginUpdate();
	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("int(%1) in (3,4,5)"); com_ConditionalFormat = var_ConditionalFormat;
		com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0));
		com_ConditionalFormat.ApplyTo(1);
	exgantt1.MarkSearchColumn(false);
	var_Columns = exgantt1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("Column 1");
		com_Columns.Add("Column 2");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(0)),COMVariant::createFromInt(1),COMVariant::createFromInt(1));
		com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(2)),COMVariant::createFromInt(1),COMVariant::createFromInt(3));
		com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(4)),COMVariant::createFromInt(1),COMVariant::createFromInt(5));
	exgantt1.EndUpdate();
}
699
Is it possible to colour a particular column

public void init()
{
	COM com_Columns,com_Items;
	anytype var_Columns,var_Items;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.MarkSearchColumn(false);
	var_Columns = exgantt1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("Column 1");
		COM::createFromVariant(com_Columns.Add("Column 2")).Def(4/*exCellBackColor*/,COMVariant::createFromInt(255));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(0)),COMVariant::createFromInt(1),COMVariant::createFromInt(1));
		com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(2)),COMVariant::createFromInt(1),COMVariant::createFromInt(3));
		com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(4)),COMVariant::createFromInt(1),COMVariant::createFromInt(5));
	exgantt1.EndUpdate();
}
698
How do i get all the children items that are under a certain parent Item handle
public void init()
{
	COM com_Items,com_Items1;
	anytype var_Items,var_Items1;
	int h,hChild;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.Columns().Add("P");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
	var_Items1 = exgantt1.Items(); com_Items1 = var_Items1;
		hChild = com_Items1.ItemChild(com_Items1.FirstVisibleItem());
		print( com_Items1.CellCaption(hChild,COMVariant::createFromInt(0)) );
		print( com_Items1.CellCaption(com_Items1.NextSiblingItem(hChild),COMVariant::createFromInt(0)) );
	exgantt1.EndUpdate();
}
697
How can I change the predefined labels being displayed in the chart's header so it shows the data in short format with no literals

public void init()
{
	COM com_Chart;
	anytype var_Chart;
	str var_s;
	;

	super();

	exgantt1.BeginUpdate();
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,0);
		com_Chart.LevelCount(3);
		com_Chart.OverviewVisible(true);
		com_Chart.AllowOverviewZoom(1/*exAlwaysZoom*/);
		com_Chart.Label(0/*exYear*/,"<%yy%><|><%yyyy%>");
		com_Chart.Label(1/*exHalfYear*/,"");
		com_Chart.Label(2/*exQuarterYear*/,"");
		com_Chart.Label(16/*exMonth*/,"<|><%m%><|><%m%>/<%yy%><|><%m%>/<%yyyy%>");
		com_Chart.Label(17/*exThirdMonth*/,"");
		com_Chart.Label(256/*exWeek*/,"<|><%ww%><|><%m%>/<%d%>/<%yy%><r><%ww%><|><%m%>/<%d%>/<%yyyy%><r><%ww%><||><||>256");
		com_Chart.Label(4096/*exDay*/,"<|><%d%><|><%m%>/<%d%>/<%yy%><|><%m%>/<%d%>/<%yyyy%><||><||>4096");
		com_Chart.Label(65536/*exHour*/,"<|><%hh%><|><%m%>/<%d%>/<%yy%> <%h%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%><||><||>65536");
		com_Chart.Label(1048576/*exMinute*/,"<|><%nn%><|><%h%>:<%nn% <%AM/PM%>><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%> <%AM/PM%><|><%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
		var_s = "<|><%ss%><|><%nn%>:<%ss%><|><%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%m%>/<%d%>/<%yy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%><|><%m%>/<%d%>/<%yyy";
		var_s = var_s + "y%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>";
		com_Chart.Label(16777216/*exSecond*/,var_s);
		com_Chart.LabelToolTip(0/*exYear*/,"<%yyyy%>");
		com_Chart.LabelToolTip(1/*exHalfYear*/,"");
		com_Chart.LabelToolTip(2/*exQuarterYear*/,"");
		com_Chart.LabelToolTip(16/*exMonth*/,"<%m%>/<%yyyy%>");
		com_Chart.LabelToolTip(17/*exThirdMonth*/,"");
		com_Chart.LabelToolTip(256/*exWeek*/,"<%m%>/<%d%>/<%yyyy%> <%ww%>");
		com_Chart.LabelToolTip(4096/*exDay*/,"<%m%>/<%d%>/<%yyyy%>");
		com_Chart.LabelToolTip(65536/*exHour*/,"<%m%>/<%d%>/<%yyyy%> <%h%> <%AM/PM%>");
		com_Chart.LabelToolTip(1048576/*exMinute*/,"<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%> <%AM/PM%>");
		com_Chart.LabelToolTip(16777216/*exSecond*/,"<%m%>/<%d%>/<%yyyy%> <%h%>:<%nn%>:<%ss%> <%AM/PM%>");
		com_Chart.UnitScale(4096/*exDay*/);
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,0);
}
*/
696
How can I get the caption of focused item
// SelectionChanged event - Fired after a new item has been selected.
void onEvent_SelectionChanged()
{
	COM com_Items;
	anytype var_Items;
	;
	var_Items = exgantt1.Items(); com_Items = var_Items;
		print( "Handle" );
		print( com_Items.FocusItem() );
		print( "Caption" );
		print( com_Items.CellCaption(com_Items.FocusItem(),COMVariant::createFromInt(0)) );
}

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.Columns().Add("Items");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.InsertItem(h,,"Cell 1.1");
		com_Items.InsertItem(h,,"Cell 1.2");
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("R2");
		com_Items.InsertItem(h,,"Cell 2.1");
		com_Items.InsertItem(h,,"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
695
How can I get the caption of selected item
// SelectionChanged event - Fired after a new item has been selected.
void onEvent_SelectionChanged()
{
	COM com_Items;
	anytype var_Items;
	;
	var_Items = exgantt1.Items(); com_Items = var_Items;
		print( "Handle" );
		print( com_Items.SelectedItem(0) );
		print( "Caption" );
		print( com_Items.CellCaption(com_Items.SelectedItem(0),COMVariant::createFromInt(0)) );
}

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.Columns().Add("Items");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.InsertItem(h,,"Cell 1.1");
		com_Items.InsertItem(h,,"Cell 1.2");
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("R2");
		com_Items.InsertItem(h,,"Cell 2.1");
		com_Items.InsertItem(h,,"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
694
How can I highligth the item from the cursor as it moves
// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	COM com_Items;
	anytype var_Items;
	int h;
	;
	exgantt1.BeginUpdate();
	h = exgantt1.ItemFromPoint(-1,-1,c,hit);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.ClearItemBackColor(exgantt1.Background(1000/*0x3e8 | exHSRight | exListOLEDropPosition*/));
		com_Items.ItemBackColor(h,WinApi::RGB2int(240,250,240));
	exgantt1.Background(1000/*0x3e8 | exHSRight | exListOLEDropPosition*/,h);
	exgantt1.EndUpdate();
}

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.DrawGridLines(1/*exHLines*/);
	exgantt1.SelBackColor(WinApi::RGB2int(240,250,240));
	exgantt1.SelForeColor(WinApi::RGB2int(0,0,0));
	exgantt1.ShowFocusRect(false);
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.SelBackColor(WinApi::RGB2int(240,250,240));
	exgantt1.Columns().Add("Items");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.InsertItem(h,,"Cell 1.1");
		com_Items.InsertItem(h,,"Cell 1.2");
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("R2");
		com_Items.InsertItem(h,,"Cell 2.1");
		com_Items.InsertItem(h,,"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
693
How can I get the item from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	int h;
	;
	h = exgantt1.ItemFromPoint(-1,-1,c,hit);
	print( "Handle" );
	print( h );
	print( "Index" );
	print( exgantt1.Items().ItemToIndex(h) );
}

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.DrawGridLines(1/*exHLines*/);
	exgantt1.Columns().Add("Items");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.InsertItem(h,,"Cell 1.1");
		com_Items.InsertItem(h,,"Cell 1.2");
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("R2");
		com_Items.InsertItem(h,,"Cell 2.1");
		com_Items.InsertItem(h,,"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
692
How can I get the column from the cursor, not only in the header
// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	;
	print( exgantt1.ColumnFromPoint(-1,0) );
}

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.Columns().Add("P1");
	exgantt1.Columns().Add("P2");
	exgantt1.DrawGridLines(-1/*exAllLines*/);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"R2");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Cell 1.1"),COMVariant::createFromInt(1),"Cell 1.2");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Cell 2.1"),COMVariant::createFromInt(1),"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
691
How can I get the column from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	;
	print( exgantt1.ColumnFromPoint(-1,-1) );
}

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.DrawGridLines(-1/*exAllLines*/);
	exgantt1.Columns().Add("P1");
	exgantt1.Columns().Add("P2");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"R2");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Cell 1.1"),COMVariant::createFromInt(1),"Cell 1.2");
		com_Items.CellCaption(com_Items.InsertItem(h,,"Cell 2.1"),COMVariant::createFromInt(1),"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
690
How can I get the cell's caption from the cursor
// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	int h;
	;
	h = exgantt1.ItemFromPoint(-1,-1,c,hit);
	print( exgantt1.Items().CellCaption(h,c) );
}

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	exgantt1.Columns().Add("Items");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("R1");
		com_Items.InsertItem(h,,"Cell 1.1");
		com_Items.InsertItem(h,,"Cell 1.2");
		com_Items.ExpandItem(h,true);
		h = com_Items.AddItem("R2");
		com_Items.InsertItem(h,,"Cell 2.1");
		com_Items.InsertItem(h,,"Cell 2.2");
		com_Items.ExpandItem(h,true);
	exgantt1.EndUpdate();
}
689
Is it possible to change the style for the vertical or horizontal grid lines, in the list area

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.DrawGridLines(-1/*exAllLines*/);
	exgantt1.GridLineStyle(33/*exGridLinesVSolid | exGridLinesHDot4*/);
	exgantt1.Columns().Add("C1");
	exgantt1.Columns().Add("C2");
	exgantt1.Columns().Add("C3");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"SubItem 1.2");
		com_Items.CellCaption(h,COMVariant::createFromInt(2),"SubItem 1.3");
		h = com_Items.AddItem("Item 2");
		com_Items.CellCaption(h,COMVariant::createFromInt(1),"SubItem 2.2");
		com_Items.CellCaption(h,COMVariant::createFromInt(2),"SubItem 2.3");
	exgantt1.EndUpdate();
}
688
How can I show the bars over the grid lines, i.e. so you cannot see the grid lines 'through' the bar

public void init()
{
	COM com_Bar,com_Chart,com_Items,com_Level;
	anytype var_Bar,var_Chart,var_Items,var_Level;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.DrawGridLines(-1/*exAllLines*/);
	exgantt1.GridLineColor(WinApi::RGB2int(220,220,220));
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.DrawGridLines(-1/*exAllLines*/);
		com_Chart.GridLineStyle(256/*exGridLinesBehind*/);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.DrawGridLines(true);
			com_Level.GridLineColor(WinApi::RGB2int(220,220,220));
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
			com_Bar.Pattern(1/*exPatternSolid*/);
			com_Bar.Height(14);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/15/2001",213)),"B");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
687
Is it possible to change the style for the vertical grid lines, in the chart area only

public void init()
{
	COM com_Bar,com_Chart,com_Items,com_Level;
	anytype var_Bar,var_Chart,var_Items,var_Level;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.DrawGridLines(-1/*exAllLines*/);
	exgantt1.GridLineStyle(12/*exGridLinesDash*/);
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.DrawGridLines(-1/*exAllLines*/);
		com_Chart.GridLineStyle(12/*exGridLinesDash*/);
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level;
		com_Level.DrawGridLines(true);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.GridLineColor(WinApi::RGB2int(255,0,0));
			com_Level.GridLineStyle(32/*exGridLinesVSolid*/);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Pattern(1/*exPatternSolid*/);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/15/2001",213)),"B");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
686
Is it possible to change the style for the grid lines, for instance to be solid not dotted

public void init()
{
	COM com_Bar,com_Chart,com_Items,com_Level;
	anytype var_Bar,var_Chart,var_Items,var_Level;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.DrawGridLines(-1/*exAllLines*/);
	exgantt1.GridLineStyle(48/*exGridLinesSolid*/);
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.DrawGridLines(-1/*exAllLines*/);
		com_Chart.GridLineStyle(48/*exGridLinesSolid*/);
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level;
		com_Level.DrawGridLines(true);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Pattern(1/*exPatternSolid*/);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/15/2001",213)),"B");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
685
How can I show the grid lines for the chart and list area

public void init()
{
	COM com_Bar,com_Chart,com_Items,com_Level;
	anytype var_Bar,var_Chart,var_Items,var_Level;
	int h;
	;

	super();

	exgantt1.DrawGridLines(-1/*exAllLines*/);
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Chart.DrawGridLines(-1/*exAllLines*/);
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(1)); com_Level = var_Level;
		com_Level.DrawGridLines(true);
		var_Bar = COM::createFromObject(com_Chart.Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Pattern(1/*exPatternSolid*/);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Item 1");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/15/2001",213)),"B");
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,48);
}
*/
684
How can I get the link from the point

// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	;
	print( exgantt1.Chart().LinkFromPoint(-1,-1) );
}

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h1,h2,h3;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Task");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("12/29/2000",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,64);
		com_Chart.LevelCount(2);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",12/*exLinkText*/,"L1");
		h3 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"K3");
		com_Items.AddLink("L2",h2,"K2",h3,"K3");
		com_Items.Link("L2",12/*exLinkText*/,"L2");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,64);
}
*/
683
How can I get the bar from the point

// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	;
	print( exgantt1.Chart().BarFromPoint(-1,-1) );
}

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h1,h2,h3;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Task");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("12/29/2000",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,64);
		com_Chart.LevelCount(2);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/4/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		h3 = com_Items.AddItem("Task 3");
		com_Items.AddBar(h3,"Task",COMVariant::createFromDate(str2Date("1/8/2001",213)),COMVariant::createFromDate(str2Date("1/10/2001",213)),"K3");
		com_Items.AddLink("L2",h2,"K2",h3,"K3");
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,64);
}
*/
682
How can I get the level from the cursor

// MouseMove event - Occurs when the user moves the mouse.
void onEvent_MouseMove(int   _Button,int   _Shift,int   _X,int   _Y)
{
	;
	print( exgantt1.Chart().LevelFromPoint(-1,-1) );
}

public void init()
{
	COM com_Chart;
	anytype var_Chart;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("6/25/2010",213)));
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,0);
		com_Chart.LevelCount(4);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,0);
}
*/
681
I display numbers in my chart, but the AddBar requires a date how can I add a bar

public void init()
{
	COM com_Chart,com_Items,com_Level;
	anytype var_Chart,var_Items,var_Level;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Tasks");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,0);
		com_Chart.NonworkingDays(0);
		com_Chart.FirstVisibleDate(COMVariant::createFromInt(0));
		com_Chart.ToolTip("");
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<%i%>");
			com_Level.ToolTip("");
		com_Chart.UnitWidth(24);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromInt(2),COMVariant::createFromInt(4));
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromInt(6),COMVariant::createFromInt(10));
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,0);
}
*/
680
I display numbers in the chart's header but do not want to get displayed negative numbers. How can i do that

// DateChange event - Occurs when the first visible date is changed.
void onEvent_DateChange()
{
	;
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromInt(0));
	exgantt1.ScrollPartEnable(2/*exHChartScroll*/,1024/*exLeftBPart*/,false);
}

public void init()
{
	COM com_Chart,com_Level;
	anytype var_Chart,var_Level;
	;

	super();

	exgantt1.BeginUpdate();
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,0);
		com_Chart.NonworkingDays(0);
		com_Chart.FirstVisibleDate(COMVariant::createFromInt(0));
		com_Chart.ToolTip("");
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<%i%>");
			com_Level.ToolTip("<%i%>");
		com_Chart.UnitWidth(24);
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,0);
}
*/
679
How can I display numbers in the chart's header instead dates

public void init()
{
	COM com_Chart,com_Level;
	anytype var_Chart,var_Level;
	;

	super();

	exgantt1.BeginUpdate();
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,0);
		com_Chart.NonworkingDays(0);
		com_Chart.FirstVisibleDate(COMVariant::createFromInt(0));
		com_Chart.ToolTip("");
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<%i%>");
			com_Level.ToolTip("");
		com_Chart.UnitWidth(24);
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,0);
}
*/
678
How can I determine that a certain bar is the topmost

public void init()
{
	COM com_Chart,com_Items;
	anytype var_Chart,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,48);
		com_Chart.FirstVisibleDate(COMVariant::createFromDate(str2Date("12/27/2000",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Bars A B");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"B");
		com_Items.ItemBar(h,"B",513/*exBarColor*/,COMVariant::createFromInt(255));
		h = com_Items.AddItem("Bars B A");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"B");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"A");
		com_Items.ItemBar(h,"A",513/*exBarColor*/,COMVariant::createFromInt(255));
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,48);
}
*/
677
Is there any automatic way to change a property for all bars in the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K3");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K4");
		com_Items.ItemBar(0,"<*>",513/*exBarColor*/,COMVariant::createFromInt(255));
}
676
I have an EBN file how can I apply different colors to it, so no need to create a new one

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h,hC;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	exgantt1.SelBackColor(exgantt1.BackColor());
	exgantt1.SelForeColor(exgantt1.ForeColor());
	exgantt1.HasLines(0/*exNoLine*/);
	exgantt1.Columns().Add("Default");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		hC = com_Items.InsertItem(h,,"Default");
		com_Items.ItemBackColor(hC,0x1000000);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Light Green");
		com_Items.ItemBackColor(hC,0x100ff00);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Dark Green");
		com_Items.ItemBackColor(hC,0x1007f00);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Magenta");
		com_Items.ItemBackColor(hC,0x1ff7fff);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		hC = com_Items.InsertItem(h,,"Yellow");
		com_Items.ItemBackColor(hC,0x17fffff);
		com_Items.ItemHeight(com_Items.InsertItem(h,,""),6);
		com_Items.ExpandItem(h,true);
}
675
How can I remove all bars from the chart
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.ClearBars(0);
}
674
How can I change the color for all bars with a specified key

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.ItemBar(0,"K1",513/*exBarColor*/,COMVariant::createFromInt(255));
}
673
Is there any automatic way to change a property for all bars with a specified key

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.ItemBar(0,"K1",513/*exBarColor*/,COMVariant::createFromInt(255));
}
672
How can I remove all bars with specified key
public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Task 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 2"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 3"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		com_Items.AddBar(com_Items.AddItem("Task 4"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K2");
		com_Items.RemoveBar(0,"K1");
}
671
Is there any option to show gradient bars without using EBN technology

public void init()
{
	COM com_Bar,com_Items;
	anytype var_Bar,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Item("Task"); com_Bar = var_Bar;
		com_Bar.Color(WinApi::RGB2int(255,0,0));
		com_Bar.StartColor(WinApi::RGB2int(0,255,0));
		com_Bar.EndColor(WinApi::RGB2int(255,255,0));
		com_Bar.Pattern(32/*exPatternBox*/);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/5/2001",213)),"");
}
670
How can I disable the control's splitter so the user can't resize the list area

public void init()
{
	;

	super();

	exgantt1.OnResizeControl(129/*exDisableSplitter | exResizeChart*/);
	/*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(0,60);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,60);
}
*/
669
How can I disable the control's splitter so the user can't resize the chart area

public void init()
{
	;

	super();

	exgantt1.OnResizeControl(128/*exDisableSplitter*/);
	/*should be called during the form's activate method*/ exgantt1.Chart().PaneWidth(1,60);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(1,60);
}
*/
668
How can I define a bar that shows two colors, one up and one down, without using skin or EBN files

public void init()
{
	COM com_Bar,com_Bar1,com_Bar2,com_Items;
	anytype var_Bar,var_Bar1,var_Bar2,var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Bar = COM::createFromObject(exgantt1.Chart().Bars()).Add("A"); com_Bar = var_Bar;
		com_Bar.Color(WinApi::RGB2int(255,0,0));
		com_Bar.Shape(2/*exShapeSolidUp*/);
		com_Bar.Pattern(1/*exPatternSolid*/);
	var_Bar1 = COM::createFromObject(exgantt1.Chart().Bars()).Add("B"); com_Bar1 = var_Bar1;
		com_Bar1.Color(WinApi::RGB2int(128,0,0));
		com_Bar1.Shape(4/*exShapeSolidDown*/);
		com_Bar1.Pattern(1/*exPatternSolid*/);
	var_Bar2 = COM::createFromObject(exgantt1.Chart().Bars()).Add("A%B"); com_Bar2 = var_Bar2;
	com_Bar2.Shortcut("AB");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Task 1");
		com_Items.AddBar(h,"AB",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",10/*exBarPercent*/,COMVariant::createFromInt(1));
	exgantt1.EndUpdate();
}
667
Does your control support RightToLeft property for RTL languages or right to left

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	int h;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.ScrollBars(15/*exDisableBoth*/);
	exgantt1.LinesAtRoot(-1/*exLinesAtRoot*/);
	var_Column = COM::createFromVariant(exgantt1.Columns().Add("P1")); com_Column = var_Column;
		com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true));
		com_Column.PartialCheck(true);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.ExpandItem(h,true);
	exgantt1.RightToLeft(true);
	exgantt1.EndUpdate();
}
666
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

public void init()
{
	COM com_Columns;
	anytype var_Columns;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.ScrollBars(15/*exDisableBoth*/);
	var_Columns = exgantt1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("C1");
		com_Columns.Add("C2");
		com_Columns.Add("C3");
		com_Columns.Add("C4");
		com_Columns.Add("C5");
		com_Columns.Add("C6");
		com_Columns.Add("C7");
		com_Columns.Add("C8");
	exgantt1.RightToLeft(true);
	exgantt1.EndUpdate();
}
665
Can I display the cell's check box after the text

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	;

	super();

	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Column")); com_Column = var_Column;
		com_Column.Def(0/*exCellHasCheckBox*/,COMVariant::createFromBoolean(true));
		com_Column.Def(34/*exCellDrawPartsOrder*/,"caption,check");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.CellHasCheckBox(com_Items.AddItem("Caption 1"),COMVariant::createFromInt(0),true);
		com_Items.CellHasCheckBox(com_Items.AddItem("Caption 2"),COMVariant::createFromInt(0),true);
}
664
Can I change the order of the parts in the cell, as checkbox after the text, and so on

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exgantt1.Images(COMVariant::createFromStr(var_s));
	COM::createFromVariant(exgantt1.Columns().Add("Column")).Def(34/*exCellDrawPartsOrder*/,"caption,check,icon,icons,picture");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Text");
		com_Items.CellImage(h,COMVariant::createFromInt(0),1);
		com_Items.CellHasCheckBox(h,COMVariant::createFromInt(0),true);
}
663
Can I have an image displayed after the text. Can I get that effect without using HTML content

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exgantt1.Images(COMVariant::createFromStr(var_s));
	COM::createFromVariant(exgantt1.Columns().Add("Column")).Def(34/*exCellDrawPartsOrder*/,"caption,icon,check,icons,picture");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Text");
		com_Items.CellImage(h,COMVariant::createFromInt(0),1);
}
662
Is there any option to print the columns section on each page

public void init()
{
	COM com_Items,com_Print;
	anytype var_Items,var_Print;
	int h1,h2;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Col 1");
	exgantt1.Columns().Add("Col 2");
	exgantt1.MarkSearchColumn(false);
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().LevelCount(2);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Col 1");
		com_Items.CellCaption(h1,COMVariant::createFromInt(1),"Col 2");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Col 1");
		com_Items.CellCaption(h2,COMVariant::createFromInt(1),"Col 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("2/5/2001",213)),COMVariant::createFromDate(str2Date("2/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",6/*exLinkStartPos*/,COMVariant::createFromInt(0));
	exgantt1.EndUpdate();
	// Add 'exprint.dll(ExPrint.dll)' reference to your project.
	// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
	var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print;
		com_Print.Options("ColumnsOnEveryPage=-2");
		com_Print.PrintExt(exgantt1);
		com_Print.Preview();
}
661
Is there any option to print the columns section on each page

public void init()
{
	COM com_Items,com_Print;
	anytype var_Items,var_Print;
	int h1,h2;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().LevelCount(2);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("2/5/2001",213)),COMVariant::createFromDate(str2Date("2/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",6/*exLinkStartPos*/,COMVariant::createFromInt(0));
	exgantt1.EndUpdate();
	// Add 'exprint.dll(ExPrint.dll)' reference to your project.
	// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
	var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print;
		com_Print.Options("ColumnsOnEveryPage=1");
		com_Print.PrintExt(exgantt1);
		com_Print.Preview();
}
660
How do I print the control's content

public void init()
{
	COM com_Items,com_Print;
	anytype var_Items,var_Print;
	int h1,h2;
	;

	super();

	exgantt1.BeginUpdate();
	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h1 = com_Items.AddItem("Task 1");
		com_Items.AddBar(h1,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)),"K1");
		h2 = com_Items.AddItem("Task 2");
		com_Items.AddBar(h2,"Task",COMVariant::createFromDate(str2Date("1/5/2001",213)),COMVariant::createFromDate(str2Date("1/7/2001",213)),"K2");
		com_Items.AddLink("L1",h1,"K1",h2,"K2");
		com_Items.Link("L1",6/*exLinkStartPos*/,COMVariant::createFromInt(0));
	exgantt1.EndUpdate();
	// Add 'exprint.dll(ExPrint.dll)' reference to your project.
	// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
	var_Print = COM::createFromObject(new EXPRINTLib.exprint()); com_Print = var_Print;
		com_Print.PrintExt(exgantt1);
		com_Print.Preview();
}
659
How can I display the column using currency format and enlarge the font for certain values

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	;

	super();

	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Currency")); com_Column = var_Column;
		com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1));
		com_Column.FormatColumn("len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
		com_Items.AddItem("9.94");
		com_Items.AddItem("11.94");
		com_Items.AddItem("1000");
}
658
How can I highlight only parts of the cells

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	int h;
	;

	super();

	var_Column = COM::createFromVariant(exgantt1.Columns().Add("")); com_Column = var_Column;
		com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1));
		com_Column.FormatColumn("value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Child 3");
		com_Items.ExpandItem(h,true);
}
657
How can I get the number of occurrences of a specified string in the cell

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("");
	var_Column = COM::createFromVariant(exgantt1.Columns().Add("occurrences")); com_Column = var_Column;
		com_Column.ComputedField("lower(%0) count 'o'");
		com_Column.FormatColumn("'contains ' + value + ' of \\'o\\' chars'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1 oooof the root");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Child 3");
		com_Items.ExpandItem(h,true);
}
656
How can I display dates in my format

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	;

	super();

	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Date")); com_Column = var_Column;
		com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1));
		com_Column.FormatColumn("'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromDate(str2Date("1/21/2001",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("2/22/2002",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("3/13/2003",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("4/24/2004",213)));
}
655
How can I display dates in short format

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("Date")).FormatColumn("shortdate(value)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("2/2/2002",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("3/3/2003",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("4/4/2004",213)));
}
654
How can I display dates in long format

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("Date")).FormatColumn("longdate(value)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromDate(str2Date("1/1/2001",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("2/2/2002",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("3/3/2003",213)));
		com_Items.AddItem(COMVariant::createFromDate(str2Date("4/4/2004",213)));
}
653
How can I display only the right part of the cell

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("");
	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Right")); com_Column = var_Column;
		com_Column.ComputedField("%0 right 2");
		com_Column.FormatColumn("'\"' + value + '\"'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"SChild 3");
		com_Items.ExpandItem(h,true);
}
652
How can I display only the left part of the cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("");
	COM::createFromVariant(exgantt1.Columns().Add("Left")).ComputedField("%0 left 2");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"SChild 3");
		com_Items.ExpandItem(h,true);
}
651
How can I display true or false instead 0 and -1

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("Boolean")).FormatColumn("value != 0 ? 'true' : 'false'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromBoolean(true));
		com_Items.AddItem(COMVariant::createFromBoolean(false));
		com_Items.AddItem(COMVariant::createFromBoolean(true));
		com_Items.AddItem(COMVariant::createFromInt(0));
		com_Items.AddItem(COMVariant::createFromInt(1));
}
650
How can I display icons or images instead numbers

public void init()
{
	COM com_Column,com_Items;
	anytype var_Column,var_Items;
	str var_s;
	;

	super();

	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql";
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0";
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN";
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=";
	exgantt1.Images(COMVariant::createFromStr(var_s));
	var_Column = COM::createFromVariant(exgantt1.Columns().Add("Icons")); com_Column = var_Column;
		com_Column.Def(17/*exCellCaptionFormat*/,COMVariant::createFromInt(1));
		com_Column.FormatColumn("'The cell displays the icon <img>'+value+'</img> instead ' + value");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromInt(1));
		com_Items.AddItem(COMVariant::createFromInt(2));
		com_Items.AddItem(COMVariant::createFromInt(3));
}
649
How can I display the column using currency

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("Currency")).FormatColumn("currency(dbl(value))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
		com_Items.AddItem("0");
		com_Items.AddItem(COMVariant::createFromInt(5));
		com_Items.AddItem("10000.99");
}
648
How can I display the currency only for not empty cells

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Currency")).ComputedField("len(%0) ? currency(dbl(%0)) : ''");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
		com_Items.AddItem("0");
		com_Items.ItemBackColor(com_Items.AddItem(),WinApi::RGB2int(255,128,128));
		com_Items.AddItem("10000.99");
}
647
Is there a function to display the number of days between two date including the number of hours

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	str var_s;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("Start")).Width(32);
	exgantt1.Columns().Add("End");
	var_s = "2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : '";
	var_s = var_s + "') + =:3 + ' hour(s)' : '' )";
	COM::createFromVariant(exgantt1.Columns().Add("Duration")).ComputedField(var_s);
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/11/2001",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("1/14/2001",213)));
		h = com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 12:00:00",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("3/14/2002 13:00:00",213)));
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("3/13/2003",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("4/11/2003 11:00:00",213)));
}
646
Is there a function to display the number of days between two date including the number of hours

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Start");
	exgantt1.Columns().Add("End");
	COM::createFromVariant(exgantt1.Columns().Add("Duration")).ComputedField("\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/11/2001",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("1/14/2001 23:00:00",213)));
		h = com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 12:00:00",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("3/14/2002 13:00:00",213)));
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("3/13/2003",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromUtcDateTime(str2Datetime("4/11/2003 11:00:00",213)));
}
645
How can I display the number of days between two dates

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Start");
	exgantt1.Columns().Add("End");
	COM::createFromVariant(exgantt1.Columns().Add("Duration")).ComputedField("(date(%1)-date(%0)) + ' days'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("1/11/2001",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("1/14/2001",213)));
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("2/22/2002",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("3/14/2002",213)));
		h = com_Items.AddItem(COMVariant::createFromDate(str2Date("3/13/2003",213)));
		com_Items.CellCaption(h,COMVariant::createFromInt(1),COMVariant::createFromDate(str2Date("4/11/2003",213)));
}
644
How can I get second part of the date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Second")).ComputedField("sec(date(%0))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:10:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:01:22",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:23:01",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:11:59",213)));
}
643
How can I get minute part of the date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Minute")).ComputedField("min(date(%0))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:10:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:01:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:23:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:11:00",213)));
}
642
How can I check the hour part only so I know it was afternoon

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("hour(%0)>=12"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.Bold(true);
	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Hour")).ComputedField("hour(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:00:00",213)));
}
641
What about a function to get the day in the week, or days since Sunday

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("WeekDay")).ComputedField("weekday(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:00:00",213)));
}
640
Is there any function to get the day of the year or number of days since January 1st

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Day since January 1st")).ComputedField("yearday(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:00:00",213)));
}
639
How can I display only the day of the date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Day")).ComputedField("day(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/11/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/22/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/13/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/14/2004 13:00:00",213)));
}
638
How can I display only the month of the date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Month")).ComputedField("month(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
637
How can I get only the year part from a date expression

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Year")).ComputedField("year(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
636
Can I convert the expression to date

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Date")).ComputedField("date(dbl(%0))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("30000.99");
		com_Items.AddItem("3561.23");
		com_Items.AddItem("1232.34");
}
635
Can I convert the expression to a number, double or float

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Number + 2")).ComputedField("dbl(%0)+2");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
634
How can I display dates in long format

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("LongFormat")).ComputedField("longdate(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
633
How can I display dates in short format

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("ShortFormat")).ComputedField("shortdate(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
632
How can I display the time only of a date expression

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Date");
	COM::createFromVariant(exgantt1.Columns().Add("Time")).ComputedField("'time is:' + time(date(%0))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("2/2/2002 11:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("3/3/2003 12:00:00",213)));
		com_Items.AddItem(COMVariant::createFromUtcDateTime(str2Datetime("4/4/2004 13:00:00",213)));
}
631
Is there any function to display currencies, or money formatted as in the control panel

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Currency")).ComputedField("currency(dbl(%0))");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
		com_Items.AddItem("10000.99");
}
630
How can I convert the expression to a string so I can look into the date string expression for month's name

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Str")).ComputedField("str(%0) + ' AA'");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
629
Can I display the absolute value or positive part of the number

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Abs")).ComputedField("abs(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
628
Is there any function to get largest number with no fraction part that is not greater than the value

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Floor")).ComputedField("floor(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
627
Is there any function to round the values base on the .5 value

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Round")).ComputedField("round(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
626
How can I get or display the integer part of the cell

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Columns().Add("Number");
	COM::createFromVariant(exgantt1.Columns().Add("Int")).ComputedField("int(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddItem("-1.98");
		com_Items.AddItem("0.99");
		com_Items.AddItem("1.23");
		com_Items.AddItem("2.34");
}
625
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("")).ComputedField("proper(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("root");
		com_Items.InsertItem(h,,"child child");
		com_Items.InsertItem(h,,"child child");
		com_Items.InsertItem(h,,"child child");
		com_Items.ExpandItem(h,true);
}
624
Is there any option to display cells in uppercase

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("")).ComputedField("upper(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
623
Is there any option to display cells in lowercase

public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	COM::createFromVariant(exgantt1.Columns().Add("")).ComputedField("lower(%0)");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
622
How can I mark the cells that has a specified type, ie strings only

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("type(%0) = 8"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0));
	exgantt1.Columns().Add("");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,COMVariant::createFromInt(2));
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
621
How can I bold the items that contains data or those who displays empty strings

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h,hC;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("not len(%1)=0"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.Bold(true);
	exgantt1.Columns().Add("C1");
	exgantt1.Columns().Add("C2");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		hC = com_Items.InsertItem(h,,"Child 2");
		com_Items.CellCaption(hC,COMVariant::createFromInt(1),"1");
		com_Items.InsertItem(h,,"Child 3");
		com_Items.ExpandItem(h,true);
}
620
Can I change the background color for items or cells that contains a specified string

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("%0 contains 'hi'"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0));
	exgantt1.Columns().Add("");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"Chld 3");
		com_Items.ExpandItem(h,true);
}
619
Is there any option to change the fore color for cells or items that ends with a specified string

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("%0 endwith '22'"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0));
	exgantt1.Columns().Add("");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 1.22");
		com_Items.InsertItem(h,,"Child 2.22");
		com_Items.ExpandItem(h,true);
}
618
How can I highlight the cells or items that starts with a specified string

public void init()
{
	COM com_ConditionalFormat,com_Items;
	anytype var_ConditionalFormat,var_Items;
	int h;
	;

	super();

	var_ConditionalFormat = COM::createFromObject(exgantt1.ConditionalFormats()).Add("%0 startwith 'C'"); com_ConditionalFormat = var_ConditionalFormat;
	com_ConditionalFormat.Underline(true);
	exgantt1.Columns().Add("");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Root");
		com_Items.InsertItem(h,,"Child 1");
		com_Items.InsertItem(h,,"Child 2");
		com_Items.InsertItem(h,,"SChild 3");
		com_Items.ExpandItem(h,true);
}
617
How can I change the background color or the visual appearance using ebn for a particular column

public void init()
{
	COM com_Columns;
	anytype var_Columns;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Columns = exgantt1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("Column 1");
		COM::createFromVariant(com_Columns.Add("Column 2")).Def(7/*exHeaderBackColor*/,COMVariant::createFromInt(16777216));
		COM::createFromVariant(com_Columns.Add("Column 3")).Def(7/*exHeaderBackColor*/,COMVariant::createFromInt(16777471));
		com_Columns.Add("Column 4");
}
616
How can I change the background color for a particular column

public void init()
{
	COM com_Columns;
	anytype var_Columns;
	;

	super();

	var_Columns = exgantt1.Columns(); com_Columns = var_Columns;
		com_Columns.Add("Column 1");
		COM::createFromVariant(com_Columns.Add("Column 2")).Def(7/*exHeaderBackColor*/,COMVariant::createFromInt(8439039));
		com_Columns.Add("Column 3");
}
615
Is it possible to define level in terms of just increasing numbers (not a Date)

public void init()
{
	COM com_Chart,com_Level;
	anytype var_Chart,var_Level;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,32);
		com_Chart.UnitWidth(32);
		com_Chart.FirstVisibleDate(COMVariant::createFromInt(1000));
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label("<%i%>");
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,32);
}
*/
614
How can I hide the non-working units ( days or hours )

public void init()
{
	COM com_Chart,com_Level,com_Level1;
	anytype var_Chart,var_Level,var_Level1;
	;

	super();

	exgantt1.BeginUpdate();
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(0,0);
		com_Chart.LevelCount(2);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<%dddd%>");
			com_Level.Alignment(1/*CenterAlignment*/);
		var_Level1 = COM::createFromObject(com_Chart.Level(1)); com_Level1 = var_Level1;
		com_Level1.Label(COMVariant::createFromInt(65536));
		com_Chart.NonworkingHours(16773375);
		com_Chart.ShowNonworkingUnits(false);
	exgantt1.EndUpdate();
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(0,0);
}
*/
613
Is there a way to have the display show the word "Noon" instead "12:00 PM" in the chart's header/levels

public void init()
{
	COM com_Chart,com_Level,com_Level1,com_Level2;
	anytype var_Chart,var_Level,var_Level1,var_Level2;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
	/*should be called during the form's activate method*/ 	com_Chart.PaneWidth(false,0);
		com_Chart.FirstVisibleDate(COMVariant::createFromUtcDateTime(str2Datetime("1/1/2001 10:00:00",213)));
		com_Chart.LevelCount(3);
		var_Level = com_Chart.Level(0); com_Level = var_Level;
			com_Level.Label("<b><%mmm%> <%d%>, <%yyyy%></b>");
			com_Level.Alignment(1/*CenterAlignment*/);
			com_Level.Unit(4096/*exDay*/);
		var_Level1 = com_Chart.Level(1); com_Level1 = var_Level1;
			com_Level1.Label("<%h%>:00 <%AM/PM%>");
			com_Level1.Alignment(1/*CenterAlignment*/);
			com_Level1.Unit(65536/*exHour*/);
			com_Level1.DrawTickLines(true);
			com_Level1.DrawGridLines(true);
			com_Level1.ReplaceLabel("12:00 PM","<fgcolor=0000FF><b>Noon</b></fgcolor>");
		var_Level2 = com_Chart.Level(2); com_Level2 = var_Level2;
			com_Level2.Label("");
			com_Level2.Unit(1048576/*exMinute*/);
			com_Level2.Count(15);
}

/*
public void activate(boolean _active)
{
	;

	super(_active);

	exgantt1.Chart().PaneWidth(false,0);
}
*/
612
How can I change the selection background color in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().SelBackColor(WinApi::RGB2int(255,0,0));
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)));
		com_Items.SelectItem(com_Items.FirstVisibleItem(),true);
}
611
How can I change the selection background color in the chart area

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().SelBackColor(0x1000000);
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)));
		com_Items.SelectItem(com_Items.FirstVisibleItem(),true);
}
610
Is there any way to extend the selection on the chart

public void init()
{
	COM com_Items;
	anytype var_Items;
	;

	super();

	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	exgantt1.Chart().SelBackColor(exgantt1.SelBackColor());
	exgantt1.Columns().Add("Column");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/4/2001",213)));
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/6/2001",213)),COMVariant::createFromDate(str2Date("1/14/2001",213)));
		com_Items.SelectItem(com_Items.FirstVisibleItem(),true);
}
609
How can I display the column's header using multiple lines

public void init()
{
	;

	super();

	exgantt1.HeaderHeight(128);
	exgantt1.HeaderSingleLine(false);
	COM::createFromVariant(exgantt1.Columns().Add("This is just a column that should break the header.")).Width(32);
	exgantt1.Columns().Add("This is just another column that should break the header.");
}
608
How can change the width, transparency, style, visual appearance ( EBN), of the vertical bar that shows the current date-time

public void init()
{
	COM com_Chart,com_Items,com_Level;
	anytype var_Chart,var_Items,var_Level;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label(COMVariant::createFromInt(1048576));
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.Label("<%ss%>");
			com_Level.Count(15);
		com_Chart.MarkNowColor(0x1000000);
		com_Chart.MarkNowWidth(6);
		com_Chart.MarkNowTransparent(50);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/1/2008",213)),COMVariant::createFromDate(str2Date("1/1/2018",213)));
}
607
How can change the width, style, visual appearance ( EBN), of the vertical bar that shows the current time

public void init()
{
	COM com_Chart,com_Items,com_Level;
	anytype var_Chart,var_Items,var_Level;
	;

	super();

	exgantt1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label(COMVariant::createFromInt(1048576));
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.Label("<%ss%>");
			com_Level.Count(15);
		com_Chart.MarkNowColor(0x1000000);
		com_Chart.MarkNowWidth(6);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/1/2008",213)),COMVariant::createFromDate(str2Date("1/1/2018",213)));
}
606
How can I show a vertical bar that indicates the current time

public void init()
{
	COM com_Chart,com_Items,com_Level;
	anytype var_Chart,var_Items,var_Level;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label(COMVariant::createFromInt(1048576));
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.Label("<%ss%>");
			com_Level.Count(15);
		com_Chart.MarkNowColor(WinApi::RGB2int(0,0,255));
		com_Chart.MarkNowWidth(7);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/1/2008",213)),COMVariant::createFromDate(str2Date("1/1/2018",213)));
}
605
How can I show semi-transparent the vertical bar that indicates the current time

public void init()
{
	COM com_Chart,com_Items,com_Level;
	anytype var_Chart,var_Items,var_Level;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.LevelCount(2);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label(COMVariant::createFromInt(1048576));
		var_Level = com_Chart.Level(1); com_Level = var_Level;
			com_Level.Label("<%ss%>");
			com_Level.Count(15);
		com_Chart.MarkNowColor(WinApi::RGB2int(0,0,255));
		com_Chart.MarkNowWidth(7);
		com_Chart.MarkNowTransparent(50);
	exgantt1.Columns().Add("Tasks");
	var_Items = exgantt1.Items(); com_Items = var_Items;
		com_Items.AddBar(com_Items.AddItem("Item 1"),"Task",COMVariant::createFromDate(str2Date("1/1/2008",213)),COMVariant::createFromDate(str2Date("1/1/2018",213)));
}
604
Is there any way to highlight or show a vertical bar that indicates the current time, from 15 to 15 seconds

public void init()
{
	COM com_Level;
	anytype var_Level;
	;

	super();

	exgantt1.Chart().LevelCount(2);
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(0); com_Level = var_Level;
	com_Level.Label(COMVariant::createFromInt(1048576));
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(1); com_Level = var_Level;
		com_Level.Label("<%ss%>");
		com_Level.Count(15);
	exgantt1.Chart().MarkNowColor(WinApi::RGB2int(0,0,255));
	exgantt1.Chart().MarkNowCount(15);
	exgantt1.Chart().MarkNowWidth(3);
}
603
Is there any way to highlight or show a vertical bar that indicates the current time, from minute to minute, hour and so on

public void init()
{
	COM com_Chart,com_Level;
	anytype var_Chart,var_Level;
	;

	super();

	var_Chart = exgantt1.Chart(); com_Chart = var_Chart;
		com_Chart.UnitWidth(48);
		com_Chart.LevelCount(1);
		var_Level = COM::createFromObject(com_Chart.Level(0)); com_Level = var_Level;
		com_Level.Label(COMVariant::createFromInt(1048576));
		com_Chart.MarkNowColor(WinApi::RGB2int(255,0,0));
		com_Chart.MarkNowUnit(1048576/*exMinute*/);
		com_Chart.MarkNowWidth(com_Chart.UnitWidth());
}
602
Is there any way to highlight or show a vertical bar that indicates the current time

public void init()
{
	COM com_Level;
	anytype var_Level;
	;

	super();

	exgantt1.Chart().LevelCount(2);
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(0); com_Level = var_Level;
	com_Level.Label(COMVariant::createFromInt(1048576));
	var_Level = COM::createFromObject(exgantt1.Chart()).Level(1); com_Level = var_Level;
		com_Level.Label("<%ss%>");
		com_Level.Count(15);
	exgantt1.Chart().MarkNowColor(WinApi::RGB2int(255,0,0));
}
601
Is there a way of making a bar flash on the screen
public void init()
{
	COM com_Items;
	anytype var_Items;
	int h;
	;

	super();

	exgantt1.Columns().Add("Task");
	exgantt1.Chart().FirstVisibleDate(COMVariant::createFromDate(str2Date("1/1/2001",213)));
	var_Items = exgantt1.Items(); com_Items = var_Items;
		h = com_Items.AddItem("Flashy task");
		com_Items.AddBar(h,"Task",COMVariant::createFromDate(str2Date("1/2/2001",213)),COMVariant::createFromDate(str2Date("1/6/2001",213)),"K1");
		com_Items.ItemBar(h,"K1",16/*exBarTransparent*/,COMVariant::createFromInt(80));
}